package com.fr.web.core.service;

import com.fr.base.FRContext;
import com.fr.base.core.util.TemplateUtils;
import com.fr.base.file.ConfigManager;
import com.fr.web.core.WebUtils;
import java.io.IOException;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class TreeViewService
{
  public static void dealWithTreeView(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
    throws IOException
  {
    Map localMap = WebUtils.createTemplateMap(paramHttpServletRequest);
    localMap.put("charset", FRContext.getConfigManager().getServerCharset());
    localMap.put("reportlets", "[" + GeneralService.writeReporletsJSON("reportlets") + "]");
    TemplateUtils.dealWithTemplate("/com/fr/web/core/tree.html", paramHttpServletResponse, localMap);
  }
}